#include <cstdio>
#include <algorithm>
#include <iostream>
#include <cmath>
using namespace std;
double a, b, c, d;
double f(double x)
{
    return a * x * x * x + b * x * x + c * x + d;
}
void findSol(double l, double r)
{
    double mid = (l + r) / 2;
    // _ASSERT(f(l) * f(r) < 0);
    while (l <= r)
    {
        mid = (l + r) / 2;
        if (abs(f(mid)) < 1e-2 || abs(l - r) < 1e-2)
            break;
        if (f(l) * f(mid) < 0)
            r = mid;
        else if (f(r) * f(mid) < 0)
            l = mid;
    }
    printf("%.2f ", mid);
}
int main()
{
    scanf("%lf%lf%lf%lf", &a, &b, &c, &d);
    //数据约定方程存在三个不同的实根,并且两两相隔大于1,根的范围在-100,100之间
    double delta = sqrt(b * b - 3 * a * c),
           x1 = (-b - delta) / (3 * a),
           x2 = (-b + delta) / (3 * a);
    findSol(-100, x1);
    findSol(x1, x2);
    findSol(x2, 100);
    return 0;
}